package com.li.service;

import com.li.dao.MyElementMapper;
import com.li.model.MyElement;
import org.springframework.beans.factory.annotation.Autowired;

public class MyElementServiceImp implements MyElementService{
    @Autowired
    private MyElementMapper mapper;

    public void setMapper(MyElementMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public MyElement getElementByNum(int num) {
        return mapper.getElementByNum(num);
    }

    @Override
    public int addElement(MyElement element) {
        return mapper.addElement(element);
    }
}
